package com.yunyi.constants;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 监听配置信息
 **/
@Data
@Component
public class BinLogConstants {
    public static final int consumerThreads = 64;
    public static final long queueSleep = 1000;
    @Value("${binlog.datasource.host}")
    private String host;
    @Value("${binlog.datasource.port}")
    private int port;
    @Value("${binlog.datasource.username}")
    private String username;
    @Value("${binlog.datasource.passwd}")
    private String passwd;
    @Value("${binlog.db}")
    private String db;
    @Value("${binlog.table}")
    private String table;

}

